﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DatePicker.ascx.cs" Inherits="UserControls_DatePicker" %>

<%--<asp:Label ID="lblCaption" runat="server" Text="Date of Birth (DD-MM-YYYY):"></asp:Label>--%>
<asp:UpdatePanel ID="updpnlDatePicker" runat="server">
<ContentTemplate>                
<asp:DropDownList ID="ddlDate" runat="server" AutoPostBack="True" 
    onselectedindexchanged="DOBDropDownList_SelectedIndexChanged">                
</asp:DropDownList>&nbsp;-
<asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" 
    onselectedindexchanged="DOBDropDownList_SelectedIndexChanged">                
</asp:DropDownList>&nbsp;-
<asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="True" 
    onselectedindexchanged="DOBDropDownList_SelectedIndexChanged"></asp:DropDownList>
&nbsp;&nbsp;<asp:Label ID="lblAge" runat="server"></asp:Label>
<asp:Label ID="lblAgeValidationMsg" runat="server" Text="Invalid date of birth" Visible="false" ForeColor="Red"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlDate" EventName="SelectedIndexChanged" />
<asp:AsyncPostBackTrigger ControlID="ddlMonth" EventName="SelectedIndexChanged" />
<asp:AsyncPostBackTrigger ControlID="ddlYear" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
